package com.systemCapacity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.systemCapacity.common.dto.EquipmentTemplateDto;
import com.systemCapacity.common.dto.TemplateMenuDto;
import com.systemCapacity.entity.Equipment;
import com.systemCapacity.entity.EquipmentTemplate;

import java.util.List;

public interface EquipmentTemplateService extends IService<EquipmentTemplate> {

    List<EquipmentTemplateDto> getTemplates(int type, int belong, int page, int size);

    boolean saveEquipmentTemplate(EquipmentTemplateDto dto);

    boolean templateExist(String templateId);

    boolean templateNameExist(String templateName);

    boolean editEquipmentTemplate(EquipmentTemplateDto dto);

    List<Integer> getTemplateType(List<String> templates);

    List<TemplateMenuDto> getTemplateMenu(Integer taskType);
    List<TemplateMenuDto> getBlueTemplateMenu();
    List<TemplateMenuDto> getRedTemplateMenu();
    String getPrefixByEquipmentId(Equipment equipment);
    List<EquipmentTemplateDto> getRedPlatfomList();
}
